home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / PPCExamples / CExamples / PPC-68K / Library.c next >
Encoding:
C/C++ Source or Header  |  1998-12-03  |  508 b   |  33 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Library.c
  3.  
  4.     Contains:    Trivial 68K library code for the "calling 68K code from PowerPC" demo
  5.  
  6.     Written by:    Richard Clark
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.                  2/15/94    RC        Released
  13.  
  14.     To Do:
  15. */
  16.  
  17.  
  18. #include "Library.h"
  19. #include <Quickdraw.h>
  20.  
  21. pascal short LibFunction (long a)
  22. {
  23.     Rect     bounds = {15, 15, 85, 185};
  24.     
  25.     while (!EmptyRect(&bounds)) {
  26.         InvertRect(&bounds);
  27.         InsetRect(&bounds, a, a);
  28.     }
  29.     
  30.     return a & 0x0000FFFF;
  31. }
  32.  
  33.